<?php
function formulario(){
?>
<center>
<form method="post" action="index.php">
  <table>
    <tr>
      <th>Capital</th>
      <th>Interés</th>
      <th>Años</th>
      <th>Pagos por año</th>
      <th>fecha(dd/mm/aaaa)</th>
    </tr>
    <tr>
      <td><input type="text" name="capital" size="10"></td>
      <td><input type="text" name="interes" size="10"></td>
      <td><input type="text" name="anios" size="3"></td>
      <td><input type="text" name="npagos" size="2"></td>
      <td><input type="text" name="dia" size="2">/
        <input type="text" name="mes" size="2">/
        <input type="text" name="anio" size="4"></td>
      <input type="hidden" name="rellenado" value="si">
      <td><input type="submit" name="btnver" value="visualizar"></td>
      <td><input type="submit" name="btnpdf" value="imprimir pdf"></td>      
    </tr>
  </table>
</form>
</center>
<?
}
function CabecerasCuadro(){
?>
<center>
<table>
<tr>
<th>nº pago</th>
<th>fecha</th>
<th>capital antes de pago</th>
<th>cuota</th>
<th>intereses</th>
<th>Principal</th>
<th>capital pendiente</th>
</tr>
<?
}

?>
